<!DOCTYPE html>
<?php
    session_start();
    if(isset($_SESSION['admin'])){
        require_once("viewmenu.php");
?>
<html lang="pt-br">
    <head>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="css/estilo-default.css" />
	<link rel="stylesheet" type="text/css" href="css/tabelacliente.css" />
        <script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript" src="js/jquery.validate.js"></script>
        <script type="text/javascript" src="js/util.validate.js"></script>
        <script type='text/javascript' src='js/jquery.form.js'></script>
        <script type="text/javascript" src="js/cliente.cadastro.js"></script>
	<title>Cadastro</title>        
    </head>
    <body>
	<div id='centro'>
            <p>Cadastrar Cliente</p>
            <fieldset>
            <form name="cadastrocliente" id="cadastrocliente" method="post" action="../control/ControleValidarCliente.php">
                <table>
                    <thead>
                        <tr>
                            <th id="td1">CPF</th>
                            <th id="td2">Nome Completo</th>
                            <th id="td3">Esqd</th>
                            <th id="td4">Cartão</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><input type="text" name="cpf" id="cpf" class="input-text" maxlength="11" autofocus/></td>
                            <td><input type='text' name="nome" class="nome" /></td>
                            <td><input type='text' name='esquadrao' class="input-text" /></td>
                            <td><input type='number' name='cartao' id="cartao" class="input-text" /></td>
                        </tr>
                    </tbody>
                </table>
                <table>
                    <thead>
                        <tr>
                            <th id="td5">Telefone</th>
                            <th id="td6">Endereço</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><input type='text' name='telefone' class="input-text"/></td>
                            <td><input type='text' name='endereco' class="nome" /></td>
                        </tr>
                    </tbody>
                </table>
                <table>
                    <thead>
                        <tr>
                            <th id="td7">Observação</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><input type='text' name='observacao' class="nome"/></td>
                        </tr>
                    </tbody>
                </table>
                <input type="submit" name="controle" value="Cadastrar"/>
            </form>
            </fieldset>
	</div>
    </body>
</html>
<?php
    }else{
        header("Location: index.php");
    }
?>